/*
 * Funny Language - a free style programming language.
 * Copyright (C) 2015 by fanguangping (fanguangping@163.com)
 * logfile.h
 */

#ifndef FUNNY_LOGFILE_H
#define FUNNY_LOGFILE_H

#ifndef DEBUG
#define DEBUG
#endif

#include "../ds/datastructure.h"
#include "../fa/automata.h"
#include "../scheme/basic/ds.h"
#include "../scheme/basic/basic.h"

long get_file_size(char* filename);
void write_log_file(char* filename, long max_size, char* buffer, unsigned buf_size);
void log_string(String prefix, String s);
void log_cell(Scheme* sc, Cell *cell);
void log_statement(Statement *s);
void log_mapping(Mapping *m);

#endif //FUNNY_LOGFILE_H
